package com.veterinaria.actions;

import java.util.ArrayList;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

import com.opensymphony.xwork2.ActionSupport;
import com.veterinaria.bean.HorarioBean;
import com.veterinaria.services.HorarioImplements;

@ParentPackage(value="ProyVeterinaria")
public class HorarioAction extends ActionSupport{
	
	HorarioImplements horarioImo=new HorarioImplements();
	private ArrayList<HorarioBean> listaHorario;
	
	@Action( value="JSONCargarHorario",results={@Result(name="success",type="json")})
	public String cargarHorario() throws Exception{
		listaHorario=horarioImo.listarHorarios();
		return SUCCESS;
	}
	

}
